package org.dromara.datacheck.domain.bo.jd;

import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.datacheck.domain.jd.JdDirectTransferOrder;

import java.util.Date;
import java.util.List;

/**
 * 金蝶-直接调拨单业务对象 jd_direct_transfer_order
 *
 * @author 刘武贵
 * @date 2024-09-08
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = JdDirectTransferOrder.class, reverseConvertGenerate = false)
public class JdDirectTransferOrderBo extends BaseEntity {

    /**
     * id
     */
    @NotNull(message = "id不能为空", groups = { EditGroup.class })
    private String id;

    /**
     * 单据编号
     */
//    @NotBlank(message = "单据编号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String receiptNumber;

    /**
     * 单据状态（0 重新审核，1 暂存，2 已审核， 3 审核中，4 新建）
     */
//    @NotBlank(message = "单据状态（0 重新审核，1 暂存，2 已审核， 3 审核中，4 新建）不能为空", groups = { AddGroup.class, EditGroup.class })
    private String receiptStatus;

    /**
     * 单据日期
     */
//    @NotBlank(message = "单据日期不能为空", groups = { AddGroup.class, EditGroup.class })
    private String receiptDate;

    /**
     * 调拨方向
     */
//    @NotBlank(message = "调拨方向不能为空", groups = { AddGroup.class, EditGroup.class })
    private String allotDirection;

    /**
     * 物料编码
     */
//    @NotBlank(message = "物料编码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String materialCode;

    /**
     * 物料名称
     */
//    @NotBlank(message = "物料名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String materialName;

    /**
     * 单位名称
     */
//    @NotBlank(message = "单位名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String unitName;

    /**
     * 调拨数量
     */
//    @NotNull(message = "调拨数量不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long allotQuantity;

    /**
     * 调出仓库
     */
//    @NotBlank(message = "调出仓库不能为空", groups = { AddGroup.class, EditGroup.class })
    private String calloutWarehouse;

    /**
     * 调入仓库
     */
//    @NotBlank(message = "调入仓库不能为空", groups = { AddGroup.class, EditGroup.class })
    private String foldWarehouse;

    /**
     * 客户
     */
//    @NotBlank(message = "客户不能为空", groups = { AddGroup.class, EditGroup.class })
    private String customer;

    /**
     * 客户名称集合
     */
    private List<String> customerList;

    /**
     * 单据日期（用于搜索）
     */
//    @NotNull(message = "单据日期（用于搜索）不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date newOrderDate;


}
